package cn.jiyun.common.model.day1;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author 李星月
 * @Date: 2023/8/11 10:54
 * @Description : Person
 */
@Data
@TableName("t_person")
@ToString
public class Person {
    @TableId(value = "pid",type = IdType.AUTO)
    private Integer pid;
    private String img;
    private String pname;
    private String idcode;
    private String sex;
    private Integer did;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date addtime;
    private String status;
    private String rid;
    private String username;
    private String password;
}
